﻿#ifndef _OI_PLSCANNER_PRESETDLG_HPP_
#define _OI_PLSCANNER_PRESETDLG_HPP_

#include "Appl/OiAppl.hpp"

namespace Oi
{
    namespace PLScannerCore
    {

        class OI_PLSCANNER_CORE_API PresetDlg : public Ctrl::Dialog
        {
            Q_OBJECT

        public:
            PresetDlg(QWidget* parent = NULL);
            ~PresetDlg();

        public slots:
            void updatePage();
            void setCurrent(QString name);

        private slots:
            void on__searchName_textChanged(const QString &);
            void on__clearSearch_clicked();

            void on__formulaList_currentRowChanged(int);

            void on__appendButton_clicked();
            void on__modifyButton_clicked();
            void on__deleteButton_clicked();
            void on__completeButton_clicked();
            void on__cancelButton_clicked();

        public:
            OI_DECLARE_IMPL(PresetDlg);
            OI_DISABLE_COPY(PresetDlg);


        };
    }
}

#endif
